﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<%@ include file="/WEB-INF/views/include/head.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>城市交通信号控制系统</title>
    <link href="${ctxStatic}/common/images/logo.ico" rel="shortcut icon" type="image/x-icon" />
    <script type="text/javascript">
        $(function () {
            //顶部导航切换
            $(".nav li a").click(function () {
                $(".nav li a.selected").removeClass("selected")
                $(this).addClass("selected");
            })
        })
    </script>
</head>
<body style="background:url(${ctxStatic}/common/images/topbg.gif) repeat-x;">
<div class="topleft">
    <a href="main.html" target="_parent"><img src="${ctxStatic}/common/images/logo.png" title="系统首页"/></a>
</div>
<ul class="nav">
    <li><a href="${ctx}/sys/home/index" target="frameMain" class="selected"><img
            src="${ctxStatic}/common/images/icon01.png" title="首页"/>
        <h2>工作台</h2></a></li>
    <%--  <#list UserUtils.getMenuList() as item>
          <#if '${item.parent.id}' == -1>
             <li><a href="${base}${item.href}?parentId=${item.id}"  target="contentFrame"><img src="${base}${item.icon}" title="${item.name}" /><h2>${item.name}</h2></a></li>
          </#if>
      </#list>--%>
    <c:forEach items="${fns:getMenuList()}" var="menu" varStatus="idxStatus">
        <%--<h2>${menu.name}</h2>
        <span>${menu.parent.id}</span>--%>
        <c:if test="${menu.parent.id eq 0&&menu.showSign eq '1'}">
            <li><a href="${ctx}${menu.href}?parentId=${menu.id}" target="frameMain"><img src="${ctxStatic}${menu.icon}"
                                                                                            title="${menu.name}"/>
                <h2>${menu.name}</h2></a></li>
        </c:if>
    </c:forEach>
</ul>
<div class="topright">
    <ul>
        <li><span><img src="${ctxStatic}/common/images/help.png" title="帮助" class="helpimg"/></span><a href="#">帮助</a>
        </li>
        <li><a href="#">关于</a></li>
        <li><a href="${ctx}/logout" target="_parent">退出</a></li>
    </ul>
    <div class="user">
        <span>admin</span>
        <i>消息</i>
        <b>5</b>
    </div>
</div>
<%--<div class="contentInfo">
    <iframe src="" scrolling="No" name="contentFrame" id="contentFrame" title="contentFrame"
            class="contentFrame"></iframe>
</div>--%>
<div class="frameMain">
    <iframe id="frameMain" src="" name="frameMain"> </iframe>
</div>
</body>
</html>
